<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>修改用户信息</title>
</head>
<body style="text-align: center">
  <form action="/user/update" method="post">
    <input name="id" hidden="hidden" th:value="${user.id}">
      <input name="version" hidden="hidden" th:value="${user.version}">
    <label>用户名：</label><input type="text" name="name" th:value="${user.name}"><br>
    <label>年龄：</label><input type="number" name="age" th:value="${user.age}"><br>
    <input type="submit" value="保存"></input>
  </form>
</body>
</html>